<template>
	<view>
		<view class="" style="margin-top: 30rpx;"></view>
		<view class="row" @click="protocol(0)">
			<view class="row-title">用户注册和使用协议</view>
			<image class="row-image" src="../../static/workbench/arrow_right.png" mode=""></image>
		</view>
		<view class="row" @click="protocol(1)">
			<view class="row-title">隐私政策</view>
			<image class="row-image" src="../../static/workbench/arrow_right.png" mode=""></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			protocol: function(index) {
				var src = ''

				switch (index) {
					case 0:
						src = 'https://api.wlkjlife.cn/userProtocol.html'
						break;
					case 1:
						src = 'https://api.wlkjlife.cn/privacyPolicy.html'
						break;
					default:
						break;
				}
				
				uni.navigateTo({
					url: '../webview/webview?src=' + src
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #F5F5F5;
	}

	.row {
		padding: 0 30rpx;
		height: 120rpx;
		line-height: 120rpx;
		color: #666666;
		font-size: 34rpx;
		background-color: #FFFFFF;
		border-bottom: 2rpx solid #F1F1F1;
	}

	.row-title {
		float: left;
	}

	.row-image {
		float: right;
		width: 30rpx;
		height: 30rpx;
		margin-top: 35rpx;
	}
</style>
